package cn.zqh.router.service;


import cn.zqh.bean.api.CommonResult;
import cn.zqh.bean.bo.AddANewRouter;
import cn.zqh.bean.bo.AdminChangeRouter;
import cn.zqh.bean.bo.Router;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zqh
 * @since 2022-12-22
 */
public interface RouterService extends IService<Router> {


    /**
      * @Author: zqh
      * @Date:
      * @Description: 添加一个新路由
    */
    CommonResult addANewRouterInfo(AddANewRouter addANewRouter);
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 修改某个路由的信息
    */
    CommonResult modifyARouteInformation(AdminChangeRouter adminRouter);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 通过id查询路由
    */
    CommonResult getRouterById(Integer routeId);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 查询所有路由
    */
    CommonResult getAllRouter();
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 根据id删除路由
    */
    CommonResult delRouterById(Integer routeId);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 查询以及删除了的路由
    */
    CommonResult getDelRouter();
}
